package com.itheima.d3_innerclass2;

/**
 * 静态内部类
 */
public class Outer {
    private String name;
    private static int age = 20;

    //静态只能访问静态 用类名调用静态成员变量
    public static class Inner{
        String name;
        static int age = 100;
        public void go(){
            System.out.println(Outer.age);
            System.out.println(age);
        }

    }
}
